package com.wwj.auction.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wwj.auction.admin.entity.Store;
import com.wwj.auction.admin.entity.vo.PageModel;
import com.wwj.auction.admin.entity.vo.StoreTempVo;
import com.wwj.auction.admin.entity.vo.StoreVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wwj
 * @since 2021-08-25
 */
public interface StoreService extends IService<Store> {

    /**
     * 根据用户id查询店铺信息
     *
     * @param id
     * @return
     */
    StoreVo getStoreInfo(Integer id);

    /**
     * 分页查询店铺信息
     *
     * @param page
     * @param limit
     * @return
     */
    PageModel<StoreTempVo> listForStore(Integer page, Integer limit);

    /**
     * 根据店铺id更新店铺状态
     *
     * @param storeId
     * @param status
     */
    void status(Integer storeId, Integer status);
}
